package com.boc.langxiang.entity.response;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * CreateTime: 2016-06-24上午10:49
 * Author: wjkjinke00@126.com
 * Description:
 */
public class AddressEntity implements Parcelable {
    public static final String DEFAULT = "1";
    private int id;
    private String username;
    private String phone;
    private String address;
    private String zipcode;
    private String province;
    private String city;
    private String district;
    //0和1,1默认
    private String is_default;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getIs_default() {
        return is_default;
    }

    public void setIs_default(String is_default) {
        this.is_default = is_default;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.username);
        dest.writeString(this.phone);
        dest.writeString(this.address);
        dest.writeString(this.zipcode);
        dest.writeString(this.province);
        dest.writeString(this.city);
        dest.writeString(this.district);
        dest.writeString(this.is_default);
    }

    public AddressEntity() {
    }

    protected AddressEntity(Parcel in) {
        this.id = in.readInt();
        this.username = in.readString();
        this.phone = in.readString();
        this.address = in.readString();
        this.zipcode = in.readString();
        this.province = in.readString();
        this.city = in.readString();
        this.district = in.readString();
        this.is_default = in.readString();
    }

    public static final Parcelable.Creator<AddressEntity> CREATOR = new Parcelable.Creator<AddressEntity>() {
        @Override
        public AddressEntity createFromParcel(Parcel source) {
            return new AddressEntity(source);
        }

        @Override
        public AddressEntity[] newArray(int size) {
            return new AddressEntity[size];
        }
    };
}
